package com.chixing.day06_static.singleton;

public class Bank2 {
    private static Bank2 bank2 = null;
    private Bank2(){
        System.out.println("Bank2 构造函数");
    }

    public static Bank2 getInstance(){
        if (bank2==null){
            bank2 = new Bank2();
        }
        return bank2;
    }
}
